<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>root.engine.guiMainFrame</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="root.engine-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >PYSF</th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        Package&nbsp;root ::
        <a href="root.engine-module.html">Package&nbsp;engine</a> ::
        Module&nbsp;guiMainFrame
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="root.engine.guiMainFrame-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="root.engine.guiMainFrame-module.html">Module root.engine.guiMainFrame</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno"> 1</tt>  <tt class="py-line"><tt class="py-docstring">"""Subclass of MainFrame, which is generated by wxFormBuilder."""</tt> </tt>
<a name="L2"></a><tt class="py-lineno"> 2</tt>  <tt class="py-line"> </tt>
<a name="L3"></a><tt class="py-lineno"> 3</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">wx</tt> </tt>
<a name="L4"></a><tt class="py-lineno"> 4</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt id="link-0" class="py-name" targets="Module root.engine.gui=root.engine.gui-module.html"><a title="root.engine.gui" class="py-name" href="#" onclick="return doclink('link-0', 'gui', 'link-0');">gui</a></tt> </tt>
<a name="L5"></a><tt class="py-lineno"> 5</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-1" class="py-name" targets="Module root.engine.guiComponentPanel=root.engine.guiComponentPanel-module.html,Class root.engine.guiComponentPanel.guiComponentPanel=root.engine.guiComponentPanel.guiComponentPanel-class.html"><a title="root.engine.guiComponentPanel
root.engine.guiComponentPanel.guiComponentPanel" class="py-name" href="#" onclick="return doclink('link-1', 'guiComponentPanel', 'link-1');">guiComponentPanel</a></tt> <tt class="py-keyword">import</tt> <tt id="link-2" class="py-name"><a title="root.engine.guiComponentPanel
root.engine.guiComponentPanel.guiComponentPanel" class="py-name" href="#" onclick="return doclink('link-2', 'guiComponentPanel', 'link-1');">guiComponentPanel</a></tt> </tt>
<a name="L6"></a><tt class="py-lineno"> 6</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-3" class="py-name" targets="Module root.engine.guiSchedulePanel=root.engine.guiSchedulePanel-module.html,Class root.engine.guiSchedulePanel.guiSchedulePanel=root.engine.guiSchedulePanel.guiSchedulePanel-class.html"><a title="root.engine.guiSchedulePanel
root.engine.guiSchedulePanel.guiSchedulePanel" class="py-name" href="#" onclick="return doclink('link-3', 'guiSchedulePanel', 'link-3');">guiSchedulePanel</a></tt> <tt class="py-keyword">import</tt> <tt id="link-4" class="py-name"><a title="root.engine.guiSchedulePanel
root.engine.guiSchedulePanel.guiSchedulePanel" class="py-name" href="#" onclick="return doclink('link-4', 'guiSchedulePanel', 'link-3');">guiSchedulePanel</a></tt> </tt>
<a name="L7"></a><tt class="py-lineno"> 7</tt>  <tt class="py-line"> </tt>
<a name="L8"></a><tt class="py-lineno"> 8</tt>  <tt class="py-line"><tt class="py-comment"># Implementing MainFrame</tt> </tt>
<a name="guiMainFrame"></a><div id="guiMainFrame-def"><a name="L9"></a><tt class="py-lineno"> 9</tt> <a class="py-toggle" href="#" id="guiMainFrame-toggle" onclick="return toggle('guiMainFrame');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="root.engine.guiMainFrame.guiMainFrame-class.html">guiMainFrame</a><tt class="py-op">(</tt><tt class="py-base-class">gui</tt><tt class="py-op">.</tt><tt class="py-base-class">MainFrame</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="guiMainFrame-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="guiMainFrame-expanded"><a name="guiMainFrame.__init__"></a><div id="guiMainFrame.__init__-def"><a name="L10"></a><tt class="py-lineno">10</tt> <a class="py-toggle" href="#" id="guiMainFrame.__init__-toggle" onclick="return toggle('guiMainFrame.__init__');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="root.engine.guiMainFrame.guiMainFrame-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">parent</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="guiMainFrame.__init__-collapsed" style="display:none;" pad="++" indent="++++++++++++"></div><div id="guiMainFrame.__init__-expanded"><a name="L11"></a><tt class="py-lineno">11</tt>  <tt class="py-line">                <tt id="link-5" class="py-name"><a title="root.engine.gui" class="py-name" href="#" onclick="return doclink('link-5', 'gui', 'link-0');">gui</a></tt><tt class="py-op">.</tt><tt id="link-6" class="py-name" targets="Class root.engine.gui.MainFrame=root.engine.gui.MainFrame-class.html"><a title="root.engine.gui.MainFrame" class="py-name" href="#" onclick="return doclink('link-6', 'MainFrame', 'link-6');">MainFrame</a></tt><tt class="py-op">.</tt><tt id="link-7" class="py-name" targets="Method root.engine.SF.SF.__init__()=root.engine.SF.SF-class.html#__init__,Method root.engine.SP.Event.__init__()=root.engine.SP.Event-class.html#__init__,Method root.engine.SP.Job.__init__()=root.engine.SP.Job-class.html#__init__,Method root.engine.SP.Machine.__init__()=root.engine.SP.Machine-class.html#__init__,Method root.engine.SP.SP.__init__()=root.engine.SP.SP-class.html#__init__,Method root.engine.SP.Schedule.__init__()=root.engine.SP.Schedule-class.html#__init__,Method root.engine.Task.Allocation.__init__()=root.engine.Task.Allocation-class.html#__init__,Method root.engine.Task.Pop.__init__()=root.engine.Task.Pop-class.html#__init__,Method root.engine.Task.Process.__init__()=root.engine.Task.Process-class.html#__init__,Method root.engine.Task.Push.__init__()=root.engine.Task.Push-class.html#__init__,Method root.engine.Task.Selection.__init__()=root.engine.Task.Selection-class.html#__init__,Method root.engine.Task.Task.__init__()=root.engine.Task.Task-class.html#__init__,Method root.engine.Yawl2sf.Xtask.__init__()=root.engine.Yawl2sf.Xtask-class.html#__init__,Method root.engine.Yawl2sf.Yawl.__init__()=root.engine.Yawl2sf.Yawl-class.html#__init__,Method root.engine.gui.ComponentPanel.__init__()=root.engine.gui.ComponentPanel-class.html#__init__,Method root.engine.gui.MainFrame.__init__()=root.engine.gui.MainFrame-class.html#__init__,Method root.engine.gui.SchedulePanel.__init__()=root.engine.gui.SchedulePanel-class.html#__init__,Method root.engine.guiComponentPanel.guiComponentPanel.__init__()=root.engine.guiComponentPanel.guiComponentPanel-class.html#__init__,Method root.engine.guiMainFrame.guiMainFrame.__init__()=root.engine.guiMainFrame.guiMainFrame-class.html#__init__,Method root.engine.guiSchedulePanel.guiSchedulePanel.__init__()=root.engine.guiSchedulePanel.guiSchedulePanel-class.html#__init__,Method root.engine.utils.Matrix.__init__()=root.engine.utils.Matrix-class.html#__init__,Method root.engine.utils.Stat.__init__()=root.engine.utils.Stat-class.html#__init__,Method root.engine.utils.Timer.__init__()=root.engine.utils.Timer-class.html#__init__"><a title="root.engine.SF.SF.__init__
root.engine.SP.Event.__init__
root.engine.SP.Job.__init__
root.engine.SP.Machine.__init__
root.engine.SP.SP.__init__
root.engine.SP.Schedule.__init__
root.engine.Task.Allocation.__init__
root.engine.Task.Pop.__init__
root.engine.Task.Process.__init__
root.engine.Task.Push.__init__
root.engine.Task.Selection.__init__
root.engine.Task.Task.__init__
root.engine.Yawl2sf.Xtask.__init__
root.engine.Yawl2sf.Yawl.__init__
root.engine.gui.ComponentPanel.__init__
root.engine.gui.MainFrame.__init__
root.engine.gui.SchedulePanel.__init__
root.engine.guiComponentPanel.guiComponentPanel.__init__
root.engine.guiMainFrame.guiMainFrame.__init__
root.engine.guiSchedulePanel.guiSchedulePanel.__init__
root.engine.utils.Matrix.__init__
root.engine.utils.Stat.__init__
root.engine.utils.Timer.__init__" class="py-name" href="#" onclick="return doclink('link-7', '__init__', 'link-7');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-name">parent</tt><tt class="py-op">)</tt> </tt>
<a name="L12"></a><tt class="py-lineno">12</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">componentPanel</tt> <tt class="py-op">=</tt> <tt id="link-8" class="py-name"><a title="root.engine.guiComponentPanel
root.engine.guiComponentPanel.guiComponentPanel" class="py-name" href="#" onclick="return doclink('link-8', 'guiComponentPanel', 'link-1');">guiComponentPanel</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
<a name="L13"></a><tt class="py-lineno">13</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">schedulePanels</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
</div><a name="L14"></a><tt class="py-lineno">14</tt>  <tt class="py-line">         </tt>
<a name="guiMainFrame.addPage"></a><div id="guiMainFrame.addPage-def"><a name="L15"></a><tt class="py-lineno">15</tt> <a class="py-toggle" href="#" id="guiMainFrame.addPage-toggle" onclick="return toggle('guiMainFrame.addPage');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="root.engine.guiMainFrame.guiMainFrame-class.html#addPage">addPage</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">page</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="guiMainFrame.addPage-collapsed" style="display:none;" pad="++" indent="++++++++++++"></div><div id="guiMainFrame.addPage-expanded"><a name="L16"></a><tt class="py-lineno">16</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">page</tt><tt class="py-op">.</tt><tt class="py-name">IsShown</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L17"></a><tt class="py-lineno">17</tt>  <tt class="py-line">                        <tt class="py-name">page</tt><tt class="py-op">.</tt><tt class="py-name">Show</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L18"></a><tt class="py-lineno">18</tt>  <tt class="py-line">                        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">notebook</tt><tt class="py-op">.</tt><tt class="py-name">AddPage</tt><tt class="py-op">(</tt><tt class="py-name">page</tt><tt class="py-op">,</tt> <tt class="py-name">name</tt><tt class="py-op">,</tt> <tt class="py-name">select</tt><tt class="py-op">=</tt><tt class="py-name">True</tt><tt class="py-op">)</tt> </tt>
<a name="L19"></a><tt class="py-lineno">19</tt>  <tt class="py-line">                        <tt class="py-keyword">if</tt> <tt class="py-name">page</tt> <tt class="py-keyword">is</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">componentPanel</tt><tt class="py-op">:</tt> </tt>
<a name="L20"></a><tt class="py-lineno">20</tt>  <tt class="py-line">                                <tt class="py-name">page</tt><tt class="py-op">.</tt><tt id="link-9" class="py-name" targets="Method root.engine.guiComponentPanel.guiComponentPanel.changeStdout()=root.engine.guiComponentPanel.guiComponentPanel-class.html#changeStdout"><a title="root.engine.guiComponentPanel.guiComponentPanel.changeStdout" class="py-name" href="#" onclick="return doclink('link-9', 'changeStdout', 'link-9');">changeStdout</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L21"></a><tt class="py-lineno">21</tt>  <tt class="py-line">         </tt>
<a name="guiMainFrame.addSchedulePage"></a><div id="guiMainFrame.addSchedulePage-def"><a name="L22"></a><tt class="py-lineno">22</tt> <a class="py-toggle" href="#" id="guiMainFrame.addSchedulePage-toggle" onclick="return toggle('guiMainFrame.addSchedulePage');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="root.engine.guiMainFrame.guiMainFrame-class.html#addSchedulePage">addSchedulePage</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">sch</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="guiMainFrame.addSchedulePage-collapsed" style="display:none;" pad="++" indent="++++++++++++"></div><div id="guiMainFrame.addSchedulePage-expanded"><a name="L23"></a><tt class="py-lineno">23</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">schedulePanels</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt id="link-10" class="py-name"><a title="root.engine.guiSchedulePanel
root.engine.guiSchedulePanel.guiSchedulePanel" class="py-name" href="#" onclick="return doclink('link-10', 'guiSchedulePanel', 'link-3');">guiSchedulePanel</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L24"></a><tt class="py-lineno">24</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-11" class="py-name" targets="Method root.engine.guiMainFrame.guiMainFrame.addPage()=root.engine.guiMainFrame.guiMainFrame-class.html#addPage"><a title="root.engine.guiMainFrame.guiMainFrame.addPage" class="py-name" href="#" onclick="return doclink('link-11', 'addPage', 'link-11');">addPage</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">schedulePanels</tt><tt class="py-op">[</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt class="py-string">'Schedule'</tt><tt class="py-op">)</tt> </tt>
<a name="L25"></a><tt class="py-lineno">25</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">sch</tt><tt class="py-op">:</tt> </tt>
<a name="L26"></a><tt class="py-lineno">26</tt>  <tt class="py-line">                        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">schedulePanels</tt><tt class="py-op">[</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt id="link-12" class="py-name" targets="Method root.engine.guiSchedulePanel.guiSchedulePanel.loadSchedule()=root.engine.guiSchedulePanel.guiSchedulePanel-class.html#loadSchedule"><a title="root.engine.guiSchedulePanel.guiSchedulePanel.loadSchedule" class="py-name" href="#" onclick="return doclink('link-12', 'loadSchedule', 'link-12');">loadSchedule</a></tt><tt class="py-op">(</tt><tt class="py-name">sch</tt><tt class="py-op">)</tt> </tt>
</div><a name="L27"></a><tt class="py-lineno">27</tt>  <tt class="py-line">         </tt>
<a name="L28"></a><tt class="py-lineno">28</tt>  <tt class="py-line">        <tt class="py-comment"># Handlers for MainFrame events.</tt> </tt>
<a name="guiMainFrame.viewSchedule"></a><div id="guiMainFrame.viewSchedule-def"><a name="L29"></a><tt class="py-lineno">29</tt> <a class="py-toggle" href="#" id="guiMainFrame.viewSchedule-toggle" onclick="return toggle('guiMainFrame.viewSchedule');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="root.engine.guiMainFrame.guiMainFrame-class.html#viewSchedule">viewSchedule</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">event</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="guiMainFrame.viewSchedule-collapsed" style="display:none;" pad="++" indent="++++++++++++"></div><div id="guiMainFrame.viewSchedule-expanded"><a name="L30"></a><tt class="py-lineno">30</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-13" class="py-name" targets="Method root.engine.guiMainFrame.guiMainFrame.addSchedulePage()=root.engine.guiMainFrame.guiMainFrame-class.html#addSchedulePage"><a title="root.engine.guiMainFrame.guiMainFrame.addSchedulePage" class="py-name" href="#" onclick="return doclink('link-13', 'addSchedulePage', 'link-13');">addSchedulePage</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L31"></a><tt class="py-lineno">31</tt>  <tt class="py-line">         </tt>
<a name="L32"></a><tt class="py-lineno">32</tt>  <tt class="py-line">                 </tt>
<a name="guiMainFrame.viewComponents"></a><div id="guiMainFrame.viewComponents-def"><a name="L33"></a><tt class="py-lineno">33</tt> <a class="py-toggle" href="#" id="guiMainFrame.viewComponents-toggle" onclick="return toggle('guiMainFrame.viewComponents');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="root.engine.guiMainFrame.guiMainFrame-class.html#viewComponents">viewComponents</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">event</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="guiMainFrame.viewComponents-collapsed" style="display:none;" pad="++" indent="++++++++++++"></div><div id="guiMainFrame.viewComponents-expanded"><a name="L34"></a><tt class="py-lineno">34</tt>  <tt class="py-line">                <tt class="py-comment"># TODO: Implement openCase</tt> </tt>
<a name="L35"></a><tt class="py-lineno">35</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-14" class="py-name"><a title="root.engine.guiMainFrame.guiMainFrame.addPage" class="py-name" href="#" onclick="return doclink('link-14', 'addPage', 'link-11');">addPage</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">componentPanel</tt><tt class="py-op">,</tt> <tt class="py-string">'Schedule-flow'</tt><tt class="py-op">)</tt> </tt>
</div><a name="L36"></a><tt class="py-lineno">36</tt>  <tt class="py-line"> </tt>
<a name="L37"></a><tt class="py-lineno">37</tt>  <tt class="py-line"> </tt>
<a name="L38"></a><tt class="py-lineno">38</tt>  <tt class="py-line">         </tt>
<a name="guiMainFrame.onPageClose"></a><div id="guiMainFrame.onPageClose-def"><a name="L39"></a><tt class="py-lineno">39</tt> <a class="py-toggle" href="#" id="guiMainFrame.onPageClose-toggle" onclick="return toggle('guiMainFrame.onPageClose');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="root.engine.guiMainFrame.guiMainFrame-class.html#onPageClose">onPageClose</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">event</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="guiMainFrame.onPageClose-collapsed" style="display:none;" pad="++" indent="++++++++++++"></div><div id="guiMainFrame.onPageClose-expanded"><a name="L40"></a><tt class="py-lineno">40</tt>  <tt class="py-line">                <tt class="py-name">event</tt><tt class="py-op">.</tt><tt class="py-name">Veto</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L41"></a><tt class="py-lineno">41</tt>  <tt class="py-line">                <tt class="py-name">page</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">notebook</tt><tt class="py-op">.</tt><tt class="py-name">GetPage</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">notebook</tt><tt class="py-op">.</tt><tt class="py-name">GetSelection</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L42"></a><tt class="py-lineno">42</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">page</tt> <tt class="py-keyword">is</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">componentPanel</tt><tt class="py-op">:</tt> </tt>
<a name="L43"></a><tt class="py-lineno">43</tt>  <tt class="py-line">                        <tt class="py-name">page</tt><tt class="py-op">.</tt><tt id="link-15" class="py-name" targets="Method root.engine.guiComponentPanel.guiComponentPanel.restoreStdout()=root.engine.guiComponentPanel.guiComponentPanel-class.html#restoreStdout"><a title="root.engine.guiComponentPanel.guiComponentPanel.restoreStdout" class="py-name" href="#" onclick="return doclink('link-15', 'restoreStdout', 'link-15');">restoreStdout</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L44"></a><tt class="py-lineno">44</tt>  <tt class="py-line">                <tt class="py-name">page</tt><tt class="py-op">.</tt><tt class="py-name">Hide</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L45"></a><tt class="py-lineno">45</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">notebook</tt><tt class="py-op">.</tt><tt class="py-name">RemovePage</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">notebook</tt><tt class="py-op">.</tt><tt class="py-name">GetSelection</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L46"></a><tt class="py-lineno">46</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="root.engine-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >PYSF</th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Mon Dec 12 17:50:58 2011
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
